﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace KFC
{
    public partial class MaThe : Form
    {
        private int _maThe;

        public int ID
        {
            get { return _maThe; }
            set { _maThe = value; }
        }
        public MaThe()
        {
            InitializeComponent();
            _maThe = -1;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                _maThe = int.Parse(textBoxMaThe.Text);
                this.Close();
            }
            catch
            {
                MessageBox.Show("Mã thẻ không đúng");
            }
        }

        private void MaThe_Load(object sender, EventArgs e)
        {

        }

    }
}
